<?php


/*
* Copyright (c) 2008-2016 vip.com, All Rights Reserved.
*
* Powered by com.vip.osp.osp-idlc-2.5.11.
*
*/

namespace com\vip\product\portal\service;
interface SizeRecommendTableVopServiceIf{
	
	
	public function batchBindCommonSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\BindCommonSizeRecommendTableReq $bind);
	
	public function batchGetSizeRecommendDetail(\com\vip\product\portal\model\vop\ReqContext $req_context, $size_recommend_table_ids);
	
	public function batchUnbindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context, $unbind_list);
	
	public function bindAutoBindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\BindAutoBindSizeRecommendTableReq $bind);
	
	public function createAutoBindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\CreateAutoBindSizeRecommendTableReq $size_recommend_table);
	
	public function createCommonSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\CreateCommonSizeRecommendTableReq $size_recommend_table);
	
	public function deleteSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\DeleteSizeRecommendTableReq $size_recommend_table);
	
	public function getProductSizeRecommendDetail(\com\vip\product\portal\model\vop\ReqContext $req_context, $brand_id, $sn);
	
	public function healthCheck();
	
	public function querySizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\SizeRecommendTableQueryCondition $condition,\com\vip\product\portal\model\vop\PageLimit $page_limit);
	
	public function updateSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\UpdateSizeRecommendTableReq $size_recommend_table);
	
}

class _SizeRecommendTableVopServiceClient extends \Osp\Base\OspStub implements \com\vip\product\portal\service\SizeRecommendTableVopServiceIf{
	
	public function __construct(){
		
		parent::__construct("com.vip.product.portal.service.SizeRecommendTableVopService", "1.0.0");
	}
	
	
	public function batchBindCommonSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\BindCommonSizeRecommendTableReq $bind){
		
		$this->send_batchBindCommonSizeRecommendTable( $req_context, $bind);
		return $this->recv_batchBindCommonSizeRecommendTable();
	}
	
	public function send_batchBindCommonSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\BindCommonSizeRecommendTableReq $bind){
		
		$this->initInvocation("batchBindCommonSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_batchBindCommonSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->bind = $bind;
		
		$this->send_base($args);
	}
	
	public function recv_batchBindCommonSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_batchBindCommonSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function batchGetSizeRecommendDetail(\com\vip\product\portal\model\vop\ReqContext $req_context, $size_recommend_table_ids){
		
		$this->send_batchGetSizeRecommendDetail( $req_context, $size_recommend_table_ids);
		return $this->recv_batchGetSizeRecommendDetail();
	}
	
	public function send_batchGetSizeRecommendDetail(\com\vip\product\portal\model\vop\ReqContext $req_context, $size_recommend_table_ids){
		
		$this->initInvocation("batchGetSizeRecommendDetail");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_batchGetSizeRecommendDetail_args();
		
		$args->req_context = $req_context;
		
		$args->size_recommend_table_ids = $size_recommend_table_ids;
		
		$this->send_base($args);
	}
	
	public function recv_batchGetSizeRecommendDetail(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_batchGetSizeRecommendDetail_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function batchUnbindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context, $unbind_list){
		
		$this->send_batchUnbindSizeRecommendTable( $req_context, $unbind_list);
		return $this->recv_batchUnbindSizeRecommendTable();
	}
	
	public function send_batchUnbindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context, $unbind_list){
		
		$this->initInvocation("batchUnbindSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_batchUnbindSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->unbind_list = $unbind_list;
		
		$this->send_base($args);
	}
	
	public function recv_batchUnbindSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_batchUnbindSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function bindAutoBindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\BindAutoBindSizeRecommendTableReq $bind){
		
		$this->send_bindAutoBindSizeRecommendTable( $req_context, $bind);
		return $this->recv_bindAutoBindSizeRecommendTable();
	}
	
	public function send_bindAutoBindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\BindAutoBindSizeRecommendTableReq $bind){
		
		$this->initInvocation("bindAutoBindSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_bindAutoBindSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->bind = $bind;
		
		$this->send_base($args);
	}
	
	public function recv_bindAutoBindSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_bindAutoBindSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function createAutoBindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\CreateAutoBindSizeRecommendTableReq $size_recommend_table){
		
		$this->send_createAutoBindSizeRecommendTable( $req_context, $size_recommend_table);
		return $this->recv_createAutoBindSizeRecommendTable();
	}
	
	public function send_createAutoBindSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\CreateAutoBindSizeRecommendTableReq $size_recommend_table){
		
		$this->initInvocation("createAutoBindSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_createAutoBindSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->size_recommend_table = $size_recommend_table;
		
		$this->send_base($args);
	}
	
	public function recv_createAutoBindSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_createAutoBindSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function createCommonSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\CreateCommonSizeRecommendTableReq $size_recommend_table){
		
		$this->send_createCommonSizeRecommendTable( $req_context, $size_recommend_table);
		return $this->recv_createCommonSizeRecommendTable();
	}
	
	public function send_createCommonSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\CreateCommonSizeRecommendTableReq $size_recommend_table){
		
		$this->initInvocation("createCommonSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_createCommonSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->size_recommend_table = $size_recommend_table;
		
		$this->send_base($args);
	}
	
	public function recv_createCommonSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_createCommonSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function deleteSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\DeleteSizeRecommendTableReq $size_recommend_table){
		
		$this->send_deleteSizeRecommendTable( $req_context, $size_recommend_table);
		return $this->recv_deleteSizeRecommendTable();
	}
	
	public function send_deleteSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\DeleteSizeRecommendTableReq $size_recommend_table){
		
		$this->initInvocation("deleteSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_deleteSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->size_recommend_table = $size_recommend_table;
		
		$this->send_base($args);
	}
	
	public function recv_deleteSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_deleteSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function getProductSizeRecommendDetail(\com\vip\product\portal\model\vop\ReqContext $req_context, $brand_id, $sn){
		
		$this->send_getProductSizeRecommendDetail( $req_context, $brand_id, $sn);
		return $this->recv_getProductSizeRecommendDetail();
	}
	
	public function send_getProductSizeRecommendDetail(\com\vip\product\portal\model\vop\ReqContext $req_context, $brand_id, $sn){
		
		$this->initInvocation("getProductSizeRecommendDetail");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_getProductSizeRecommendDetail_args();
		
		$args->req_context = $req_context;
		
		$args->brand_id = $brand_id;
		
		$args->sn = $sn;
		
		$this->send_base($args);
	}
	
	public function recv_getProductSizeRecommendDetail(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_getProductSizeRecommendDetail_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function healthCheck(){
		
		$this->send_healthCheck();
		return $this->recv_healthCheck();
	}
	
	public function send_healthCheck(){
		
		$this->initInvocation("healthCheck");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_healthCheck_args();
		
		$this->send_base($args);
	}
	
	public function recv_healthCheck(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_healthCheck_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function querySizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\SizeRecommendTableQueryCondition $condition,\com\vip\product\portal\model\vop\PageLimit $page_limit){
		
		$this->send_querySizeRecommendTable( $req_context, $condition, $page_limit);
		return $this->recv_querySizeRecommendTable();
	}
	
	public function send_querySizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\SizeRecommendTableQueryCondition $condition,\com\vip\product\portal\model\vop\PageLimit $page_limit){
		
		$this->initInvocation("querySizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_querySizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->condition = $condition;
		
		$args->page_limit = $page_limit;
		
		$this->send_base($args);
	}
	
	public function recv_querySizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_querySizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
	public function updateSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\UpdateSizeRecommendTableReq $size_recommend_table){
		
		$this->send_updateSizeRecommendTable( $req_context, $size_recommend_table);
		return $this->recv_updateSizeRecommendTable();
	}
	
	public function send_updateSizeRecommendTable(\com\vip\product\portal\model\vop\ReqContext $req_context,\com\vip\product\portal\model\vop\UpdateSizeRecommendTableReq $size_recommend_table){
		
		$this->initInvocation("updateSizeRecommendTable");
		$args = new \com\vip\product\portal\service\SizeRecommendTableVopService_updateSizeRecommendTable_args();
		
		$args->req_context = $req_context;
		
		$args->size_recommend_table = $size_recommend_table;
		
		$this->send_base($args);
	}
	
	public function recv_updateSizeRecommendTable(){
		
		$result = new \com\vip\product\portal\service\SizeRecommendTableVopService_updateSizeRecommendTable_result();
		$this->receive_base($result);
		if ($result->success !== null){
			
			return $result->success;
		}
		
	}
	
	
}




class SizeRecommendTableVopService_batchBindCommonSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $bind = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'bind'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['bind'])){
				
				$this->bind = $vals['bind'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->bind = new \com\vip\product\portal\model\vop\BindCommonSizeRecommendTableReq();
			$this->bind->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('bind');
		
		if (!is_object($this->bind)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->bind->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_batchGetSizeRecommendDetail_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $size_recommend_table_ids = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'size_recommend_table_ids'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['size_recommend_table_ids'])){
				
				$this->size_recommend_table_ids = $vals['size_recommend_table_ids'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->size_recommend_table_ids = array();
			$_size0 = 0;
			$input->readListBegin();
			while(true){
				
				try{
					
					$elem0 = null;
					$input->readI64($elem0); 
					
					$this->size_recommend_table_ids[$_size0++] = $elem0;
				}
				catch(\Exception $e){
					
					break;
				}
			}
			
			$input->readListEnd();
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('size_recommend_table_ids');
		
		if (!is_array($this->size_recommend_table_ids)){
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$output->writeListBegin();
		foreach ($this->size_recommend_table_ids as $iter0){
			
			$xfer += $output->writeI64($iter0);
			
		}
		
		$output->writeListEnd();
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_batchUnbindSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $unbind_list = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'unbind_list'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['unbind_list'])){
				
				$this->unbind_list = $vals['unbind_list'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->unbind_list = array();
			$_size1 = 0;
			$input->readListBegin();
			while(true){
				
				try{
					
					$elem1 = null;
					
					$elem1 = new \com\vip\product\portal\model\vop\UnbindSizeRecommendTableReq();
					$elem1->read($input);
					
					$this->unbind_list[$_size1++] = $elem1;
				}
				catch(\Exception $e){
					
					break;
				}
			}
			
			$input->readListEnd();
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('unbind_list');
		
		if (!is_array($this->unbind_list)){
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$output->writeListBegin();
		foreach ($this->unbind_list as $iter0){
			
			
			if (!is_object($iter0)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $iter0->write($output);
			
		}
		
		$output->writeListEnd();
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_bindAutoBindSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $bind = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'bind'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['bind'])){
				
				$this->bind = $vals['bind'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->bind = new \com\vip\product\portal\model\vop\BindAutoBindSizeRecommendTableReq();
			$this->bind->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('bind');
		
		if (!is_object($this->bind)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->bind->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_createAutoBindSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $size_recommend_table = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'size_recommend_table'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['size_recommend_table'])){
				
				$this->size_recommend_table = $vals['size_recommend_table'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->size_recommend_table = new \com\vip\product\portal\model\vop\CreateAutoBindSizeRecommendTableReq();
			$this->size_recommend_table->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('size_recommend_table');
		
		if (!is_object($this->size_recommend_table)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->size_recommend_table->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_createCommonSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $size_recommend_table = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'size_recommend_table'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['size_recommend_table'])){
				
				$this->size_recommend_table = $vals['size_recommend_table'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->size_recommend_table = new \com\vip\product\portal\model\vop\CreateCommonSizeRecommendTableReq();
			$this->size_recommend_table->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('size_recommend_table');
		
		if (!is_object($this->size_recommend_table)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->size_recommend_table->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_deleteSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $size_recommend_table = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'size_recommend_table'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['size_recommend_table'])){
				
				$this->size_recommend_table = $vals['size_recommend_table'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->size_recommend_table = new \com\vip\product\portal\model\vop\DeleteSizeRecommendTableReq();
			$this->size_recommend_table->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('size_recommend_table');
		
		if (!is_object($this->size_recommend_table)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->size_recommend_table->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_getProductSizeRecommendDetail_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $brand_id = null;
	public $sn = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'brand_id'
			),
			3 => array(
			'var' => 'sn'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['brand_id'])){
				
				$this->brand_id = $vals['brand_id'];
			}
			
			
			if (isset($vals['sn'])){
				
				$this->sn = $vals['sn'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			$input->readI32($this->brand_id); 
			
		}
		
		
		
		
		if(true) {
			
			$input->readString($this->sn);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('brand_id');
		$xfer += $output->writeI32($this->brand_id);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('sn');
		$xfer += $output->writeString($this->sn);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_healthCheck_args {
	
	static $_TSPEC;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			
			);
			
		}
		
		if (is_array($vals)){
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_querySizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $condition = null;
	public $page_limit = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'condition'
			),
			3 => array(
			'var' => 'page_limit'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['condition'])){
				
				$this->condition = $vals['condition'];
			}
			
			
			if (isset($vals['page_limit'])){
				
				$this->page_limit = $vals['page_limit'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->condition = new \com\vip\product\portal\model\vop\SizeRecommendTableQueryCondition();
			$this->condition->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->page_limit = new \com\vip\product\portal\model\vop\PageLimit();
			$this->page_limit->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('condition');
		
		if (!is_object($this->condition)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->condition->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('page_limit');
		
		if (!is_object($this->page_limit)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->page_limit->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_updateSizeRecommendTable_args {
	
	static $_TSPEC;
	public $req_context = null;
	public $size_recommend_table = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			1 => array(
			'var' => 'req_context'
			),
			2 => array(
			'var' => 'size_recommend_table'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['req_context'])){
				
				$this->req_context = $vals['req_context'];
			}
			
			
			if (isset($vals['size_recommend_table'])){
				
				$this->size_recommend_table = $vals['size_recommend_table'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->req_context = new \com\vip\product\portal\model\vop\ReqContext();
			$this->req_context->read($input);
			
		}
		
		
		
		
		if(true) {
			
			
			$this->size_recommend_table = new \com\vip\product\portal\model\vop\UpdateSizeRecommendTableReq();
			$this->size_recommend_table->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		$xfer += $output->writeFieldBegin('req_context');
		
		if (!is_object($this->req_context)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->req_context->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldBegin('size_recommend_table');
		
		if (!is_object($this->size_recommend_table)) {
			
			throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
		}
		
		$xfer += $this->size_recommend_table->write($output);
		
		$xfer += $output->writeFieldEnd();
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_batchBindCommonSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = array();
			$_size0 = 0;
			$input->readListBegin();
			while(true){
				
				try{
					
					$elem0 = null;
					
					$elem0 = new \com\vip\product\portal\model\vop\BindCommonSizeRecommendTableResp();
					$elem0->read($input);
					
					$this->success[$_size0++] = $elem0;
				}
				catch(\Exception $e){
					
					break;
				}
			}
			
			$input->readListEnd();
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_array($this->success)){
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$output->writeListBegin();
			foreach ($this->success as $iter0){
				
				
				if (!is_object($iter0)) {
					
					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
				}
				
				$xfer += $iter0->write($output);
				
			}
			
			$output->writeListEnd();
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_batchGetSizeRecommendDetail_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = array();
			$_size1 = 0;
			$input->readListBegin();
			while(true){
				
				try{
					
					$elem1 = null;
					
					$elem1 = new \com\vip\product\portal\model\vop\SizeRecommendTable();
					$elem1->read($input);
					
					$this->success[$_size1++] = $elem1;
				}
				catch(\Exception $e){
					
					break;
				}
			}
			
			$input->readListEnd();
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_array($this->success)){
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$output->writeListBegin();
			foreach ($this->success as $iter0){
				
				
				if (!is_object($iter0)) {
					
					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
				}
				
				$xfer += $iter0->write($output);
				
			}
			
			$output->writeListEnd();
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_batchUnbindSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = array();
			$_size1 = 0;
			$input->readListBegin();
			while(true){
				
				try{
					
					$elem1 = null;
					
					$elem1 = new \com\vip\product\portal\model\vop\UnbindSizeRecommendTableResp();
					$elem1->read($input);
					
					$this->success[$_size1++] = $elem1;
				}
				catch(\Exception $e){
					
					break;
				}
			}
			
			$input->readListEnd();
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_array($this->success)){
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$output->writeListBegin();
			foreach ($this->success as $iter0){
				
				
				if (!is_object($iter0)) {
					
					throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
				}
				
				$xfer += $iter0->write($output);
				
			}
			
			$output->writeListEnd();
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_bindAutoBindSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\BindAutoBindSizeRecommendTableResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_createAutoBindSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\CreateAutoBindRecommendTableResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_createCommonSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\CreateCommonSizeRecommendTableResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_deleteSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\DeleteSizeRecommendTableResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_getProductSizeRecommendDetail_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\ProductSizeRecommendTableDetailResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_healthCheck_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\hermes\core\health\CheckResult();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_querySizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\SizeRecommendTablePageQueryResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




class SizeRecommendTableVopService_updateSizeRecommendTable_result {
	
	static $_TSPEC;
	public $success = null;
	
	public function __construct($vals=null){
		
		if (!isset(self::$_TSPEC)){
			
			self::$_TSPEC = array(
			0 => array(
			'var' => 'success'
			),
			
			);
			
		}
		
		if (is_array($vals)){
			
			
			if (isset($vals['success'])){
				
				$this->success = $vals['success'];
			}
			
			
		}
		
	}
	
	
	public function read($input){
		
		
		
		
		if(true) {
			
			
			$this->success = new \com\vip\product\portal\model\vop\UpdateSizeRecommendTableResp();
			$this->success->read($input);
			
		}
		
		
		
		
		
		
	}
	
	public function write($output){
		
		$xfer = 0;
		$xfer += $output->writeStructBegin();
		
		if($this->success !== null) {
			
			$xfer += $output->writeFieldBegin('success');
			
			if (!is_object($this->success)) {
				
				throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA);
			}
			
			$xfer += $this->success->write($output);
			
			$xfer += $output->writeFieldEnd();
		}
		
		
		$xfer += $output->writeFieldStop();
		$xfer += $output->writeStructEnd();
		return $xfer;
	}
	
}




?>